home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / ewl / ewl_paned.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  2KB  |  68 lines

  1. #ifndef __EWL_PANED_H__
  2. #define __EWL_PANED_H__
  3.  
  4. /**
  5.  * @file ewl_paned.h
  6.  * @defgroup Ewl_Paned Paned: A paned widget
  7.  * @brief Provides a widget to have a resizable paned container
  8.  *
  9.  * @{
  10.  */
  11.  
  12. /**
  13.  * @themekey /paned/file
  14.  * @themekey /paned/group
  15.  * @themekey /grabber/vertical/file
  16.  * @themekey /grabber/vertical/group
  17.  * @themekey /grabber/horizontal/file
  18.  * @themekey /grabber/horizontal/group
  19.  */
  20.  
  21. /**
  22.  */
  23. typedef struct Ewl_Paned Ewl_Paned;
  24.  
  25. /**
  26.  * @def EWL_PANED(pane)
  27.  * Typecasts a pointer to a Ewl_Paned pointer
  28.  */
  29. #define EWL_PANED(paned) ((Ewl_Paned *) paned)
  30.  
  31. /**
  32.  * @struct Ewl_Paned
  33.  * Inherits from Ewl_Container and extends to provided the paned widget
  34.  */
  35. struct Ewl_Paned
  36. {
  37.     Ewl_Container container;
  38.     Ewl_Orientation    orientation;
  39. };
  40.  
  41. Ewl_Widget    *ewl_paned_new(void);
  42. Ewl_Widget    *ewl_hpaned_new(void);
  43. Ewl_Widget    *ewl_vpaned_new(void);
  44. int         ewl_paned_init(Ewl_Paned *p);
  45.  
  46. void          ewl_paned_orientation_set(Ewl_Paned *p, Ewl_Orientation o);
  47. Ewl_Orientation  ewl_paned_orientation_get(Ewl_Paned *p);
  48.  
  49. /* 
  50.  * Internal functions. Override at your risk.
  51.  */
  52. void ewl_paned_cb_child_add(Ewl_Container *c, Ewl_Widget *w);
  53. void ewl_paned_cb_child_remove(Ewl_Container *c, Ewl_Widget *w);
  54. void ewl_paned_cb_child_resize(Ewl_Container *c, Ewl_Widget *w, int size,
  55.                             Ewl_Orientation o);
  56. void ewl_paned_cb_child_show(Ewl_Container *c, Ewl_Widget *w);
  57. void ewl_paned_cb_child_hide(Ewl_Container *c, Ewl_Widget *w);
  58.  
  59. void ewl_paned_cb_configure(Ewl_Widget *w, void *ev, void *data);
  60.  
  61. /**
  62.  * @}
  63.  */
  64.  
  65. #endif
  66.  
  67.  
  68.